//#include "GridTree.hpp"
//#include "POIData.hpp"

#include "POIDB.hpp"
int main()
{
	//POIDB::GridTree gt(27306, 13519);

	//POIDB::Node* node = gt.find(109227, 54079, 17);

	POIDB::POIDB poidb;

	poidb.insert(120.123456, 30.123456, 5000, "zunceng", "hello");

	for (int i = 0 ; i < 1000 ; i++)
	{
		printf("%d\r",i);
		poidb.insert(120.123456, 30.123456, 10, "zunceng", "hello1");
	}
	printf("\n");

	poidb.runtimeReleaesMemory();

	{
		std::list<POIDB::POIData_o> poi_list;
		poidb.find(POIDB::GridKey(120.123456, 30.123456, 15), poi_list);
	}
	

	poidb.remove("zunceng");

	{
		std::list<POIDB::POIData_o> poi_list;
		poidb.find(POIDB::GridKey(120.123456, 30.123456, 15), poi_list);
	}
	poidb.runtimeReleaesMemory();


	//POIDB::POIDataMap map;

	return 0;
}
